import {
  Package_Name,
  // API
  // maps
  WinCharEncodeCodeFormatMap_Name,
  // utils
  NodeUtil_Name,
  // 类型
  // maps
  WinCharEncodeCodeFormatMapType_Name,
  // utils
  GetSysEncodeFormatType_Name,
  GetSysShellType_Name
} from '@xtail/node'
import { AutoImportUtil } from '@xtail/unplugin'

export const XTailNodeAutoImports = () =>
  AutoImportUtil.genAutoImports(Package_Name, [
    // maps
    WinCharEncodeCodeFormatMap_Name,
    // utils
    NodeUtil_Name
  ])

export type XTailNodeAutoImportsType = typeof XTailNodeAutoImports

export const XTailNodeTypeAutoImports = () =>
  AutoImportUtil.genTypeAutoImports(Package_Name, [
    // maps
    WinCharEncodeCodeFormatMapType_Name,
    // utils
    GetSysEncodeFormatType_Name,
    GetSysShellType_Name
  ])

export type XTailNodeTypeAutoImportsType = typeof XTailNodeTypeAutoImports
